<?php



class CmsProductImageMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.CmsProductImageMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('cms_product_image');
		$tMap->setPhpName('CmsProductImage');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('IMAGE_ID', 'ImageId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PRODUCT_ID', 'ProductId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SEQ', 'Seq', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('IMAGE_WIDTH', 'ImageWidth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('IMAGE_HEIGHT', 'ImageHeight', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('IMAGE_TITLE', 'ImageTitle', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('IMAGE_ALT', 'ImageAlt', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('IMAGE_SRC', 'ImageSrc', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('STATUS_CODE', 'StatusCode', 'string', CreoleTypes::VARCHAR, true, 10);

		$tMap->addColumn('CREATED_BY', 'CreatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CREATED_ON', 'CreatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('UPDATED_BY', 'UpdatedBy', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('UPDATED_ON', 'UpdatedOn', 'int', CreoleTypes::TIMESTAMP, true, null);

	} 
} 